package com.itmate.webpro.controller;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.itmate.webpro.HealthStateMsg;

import io.vertx.core.json.JsonObject;


@RestController
@EnableAutoConfiguration
@RequestMapping("/health")
public class HealthController {
    
    @RequestMapping(value = "/getHealthState", method = RequestMethod.GET)
    public JsonObject getReturn() {
    	    	
    	JsonObject map =new JsonObject();
    	map.put("data", HealthStateMsg.GetInstance().equipment_data);
    	return map;
	}

}
